MAKE = ../z_tools/make.exe
EDIMG = ../z_tools/edimg.exe
NASK = ../z_tools/nask.exe

run: helloos.img
	copy helloos.img ..\z_tools\qemu\fdimage0.bin
	$(MAKE) -C ..\z_tools\qemu
	
ipl10.bin: ipl10.nas
	$(NASK) ipl10.nas ipl10.bin

helloos.img: ipl10.bin
	$(EDIMG) imgin:../z_tools/fdimg0at.tek \
		wbinimg src:ipl10.bin len:512 from:0 to:0 imgout:helloos.img
		
clean:
	-del ipl10.bin
	-del helloos.img